﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using DataAccessLayer;

namespace BusinessLayer
{
    public class SearchEng
    {
        public string serachname { get; set; }
        public string searchdesc { get; set; }

        public SearchEng()
        {
            serachname = "";
            searchdesc = "";
        }

        public SearchEng(string snm, string sdc)
        {
            serachname = snm;
            searchdesc = sdc;
        }

        //public List<SearchEng> get_seacrh_engine()
        //{
        //    List<csparameterListType> par = new List<csparameterListType>();
        //    List<SearchEng> objlit = new List<SearchEng>();
        //    DataAccessLayer.csDAL objdal = new DataAccessLayer.csDAL();
        //    IDataReader datareader = null;

        //    datareader = objdal.executespreturndr("SEARCH_ENGINE");
        //    while (datareader.Read())
        //    {
        //        SearchEng objSeng = new SearchEng();
        //        populate_reader(datareader, objSeng);
        //        objlit.Add(objSeng);

        //    }
        //    return objlit;
        //}

        //private void populate_reader(IDataReader datareader, SearchEng objSeng)
        //{
        //    objSeng.name = datareader.GetString(0);
        //    objSeng.desc = datareader.GetString(1);
        //}
    }
}